import { publicMsg } from "./publicMsg.js"

//var hrml = "http://192.168.0.99:9094/api";
//传递过来this,component,请求方式,
export const Request = (_this,component,params,method,application) => {

 !!method ? method : method = "post";

 !application ? application = 'application/json' : application;
 
//	return new Promise((resolve,reject) =>{
		return _this.axios({
			url: component,
			method: method,
			data: params,
			headers: {
				'Content-Type': application,
				'Access-Control-Allow-Origin':'/',
			}
		})
//	})
	
}
